package com.zabra.zl.ui.personal_center.model;

import com.zabra.zl.data.AccountBean;
import com.zabra.zl.data.SimpleBean;
import com.zabra.zl.net.RetrofitClient;
import com.zabra.zl.ui.personal_center.contract.PersonalContract;

import io.reactivex.Flowable;
import okhttp3.RequestBody;
import retrofit2.Call;

public class PersonalModel implements PersonalContract.Model {
    @Override
    public Flowable<SimpleBean> getData(RequestBody body) {
        return RetrofitClient.getInstance().getApi().getLogoutData(body);
    }

    @Override
    public Call<AccountBean> getUserData(RequestBody body) {
        return RetrofitClient.getInstance().getApi().getAccountData(body);
    }
}
